package com.example.demo.manager;

import com.example.demo.domain.db.User;
import com.example.demo.manager.inf.CanalManager;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author <a href="hedong.wu@baozun.com">wuhedong</a>
 * @Date 2020/5/26 18:54
 **/
@Component("user")
public class UserManager implements CanalManager<User> {
    @Override
    public boolean doOnDelete(User user) {
        return true;
    }

    @Override
    public boolean doOnUpdate(User beforeUser, User afterUser) {
        return true;
    }

    @Override
    public boolean doOnAdd(User user) {
        return true;
    }

    @Override
    public Class<User> getHandleClass() {
        return User.class;
    }
}
